
## full list of possibly relevant packages

ejampackages <- names(
  grep("EJAM.*", installed.packages()[, 'Package'], value = TRUE)
  )
cat(paste0(" full list of possibly relevant packages: \n
  c('", paste0(ejampackages, collapse = "', '"), "')\n"))
cat('\n') 

ejampackages <- c("EJAM")

cat(paste0(" critical EJAM-related packages being saved as 'ejampackages' are these: \n
  ejampackages <- c('", paste0(ejampackages, collapse = "', '"), "')\n"))
cat('\n')

ejampackages <- metadata_add(ejampackages)
usethis::use_data(ejampackages, overwrite = TRUE)

dataset_documenter("ejampackages", 
                   "ejampackages (DATA) list of names of key EJAM-related R packages")
